<template>
  <div class="testScene-initDeployRelateDescriptForm" v-loading="loading">
    <el-form :model="ruleForm" :inline="true" ref="formRef" label-width="85px">
      <TagIcon title="对抗案例想定总体描述项" />
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item
            label="对抗类型"
            prop="sampleAdversItemVO.adversMode"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.sampleAdversItemVO.adversMode"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="舰载有源干扰-雷达" value="舰载有源干扰-雷达" />
              <el-option label="舷外有源干扰-雷达" value="舷外有源干扰-雷达" />
              <el-option label="箔条干扰-雷达" value="箔条干扰-雷达" />
              <el-option label="角反干扰-雷达" value="角反干扰-雷达" />
              <el-option label="二组合干扰" value="二组合干扰" />
              <el-option label="三组合干扰" value="三组合干扰" />
              <el-option label="四组合干扰" value="四组合干扰" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="干扰装备使用方式"
            prop="sampleAdversItemVO.interfEquipUsageMeth"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.sampleAdversItemVO.interfEquipUsageMeth"
              type="textarea"
              
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="作战想定场景"
            prop="sampleAdversItemVO.scenarioDes"
          >
            <el-select
              v-model="ruleForm.sampleAdversItemVO.scenarioDes"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="作战区域" value="作战区域" />
              <el-option label="作战时间" value="作战时间" />
              <el-option label="作战任务" value="作战任务" />
              <el-option
                label="敌我实战装备部署情况"
                value="敌我实战装备部署情况"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="干扰机理"
            prop="sampleAdversItemVO.interfMechanism"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.sampleAdversItemVO.interfMechanism"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <TagIcon title="导引头初始部署信息项" />
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item
            label="导引头型号"
            prop="dytInitialDeployInfoVO.dytName"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.dytName"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="开机距离"
            prop="dytInitialDeployInfoVO.powerUpDistance"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.powerUpDistance"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="工作频段"
            prop="dytInitialDeployInfoVO.workingRange"
          >
            <!-- <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.workingRange"
              placeholder="请输入"
              :disabled="disabled"
            /> -->
            <el-select
              v-model="ruleForm.dytInitialDeployInfoVO.workingRange"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="C频段(4GHz~8GHz)" value="C频段(4GHz~8GHz)" />
              <el-option label="X频段(8GHz~12GHz)" value="X频段(8GHz~12GHz)" />
              <el-option label="Ku频段(12GHz~18GHz)" value="Ku频段(12GHz~18GHz)" />
              <el-option
                label="Ka频段(27GHz~40GHz)"
                value="Ka频段(27GHz~40GHz)"
              />
              <el-option
                label="Q频段(75GHz~110GHz)"
                value="Q频段(75GHz~110GHz)"
              />
            </el-select>
          </el-form-item>
          <el-form-item
            label="工作带宽"
            prop="dytInitialDeployInfoVO.workingBandwidth"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.workingBandwidth"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>

          <el-form-item
            label="重复周期"
            prop="dytInitialDeployInfoVO.pulseWidth"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.pulseWidth"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="弹道类型"
            prop="dytInitialDeployInfoVO.ballisticType"
          >
            <el-select
              v-model="ruleForm.dytInitialDeployInfoVO.ballisticType"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="弹道式" value="弹道式" />
              <el-option label="飞航式" value="飞航式" />
              <el-option label="滑翔式" value="滑翔式" />
              <el-option label="其他" value="其他" />
            </el-select>
          </el-form-item>

          <el-form-item
            label="突防干扰装备"
            prop="dytInitialDeployInfoVO.peneInterEquip"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.peneInterEquip"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="导引头初始位置"
            prop="dytInitialDeployInfoVO.dytInitiaPosition"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.dytInitiaPosition"
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="捷变方式"
            prop="dytInitialDeployInfoVO.agileMethod"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.agileMethod"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="被动作用距离(最大)"
            prop="dytInitialDeployInfoVO.maxPassiveRange"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.maxPassiveRange"
              placeholder="请输入最大距离"
              :disabled="disabled"
            />
          </el-form-item>

          <el-form-item
            label="俯仰测角精度-被动"
            prop="dytInitialDeployInfoVO.passiveElevAccuracy"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.passiveElevAccuracy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>

          <el-form-item
            label="测距精度"
            prop="dytInitialDeployInfoVO.distanceAccuracy"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.distanceAccuracy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="运行速度"
            prop="dytInitialDeployInfoVO.runningSpeed"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.runningSpeed"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="雷达体制"
            prop="dytInitialDeployInfoVO.radarStyle"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.radarStyle"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="工作频率"
            prop="dytInitialDeployInfoVO.workingFreq"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.workingFreq"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item label="极化" prop="dytInitialDeployInfoVO.polarization">
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.polarization"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="脉冲宽度"
            prop="dytInitialDeployInfoVO.beamWidth"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.beamWidth"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="发射动能"
            prop="dytInitialDeployInfoVO.launchKinEnergy"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.launchKinEnergy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="装订信息"
            prop="dytInitialDeployInfoVO.bindingInformation"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.bindingInformation"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="导引头目位置信息"
            prop="dytInitialDeployInfoVO.dytTargetPosition"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.dytTargetPosition"
              
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="测角类型"
            prop="dytInitialDeployInfoVO.angleMeasType"
          >
            <el-select
              v-model="ruleForm.dytInitialDeployInfoVO.angleMeasType"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="绝对测量" value="绝对测量" />
              <el-option label="相对测量" value="相对测量" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="成像识别距离(最大)"
            prop="dytInitialDeployInfoVO.maxImagingIdentRange"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.maxImagingIdentRange"
              placeholder="请输入最大距离"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="方位测角精度-主动"
            prop="dytInitialDeployInfoVO.activeAziAccuracy"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.activeAziAccuracy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="信干比"
            prop="dytInitialDeployInfoVO.signalNoiseRatio"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.signalNoiseRatio"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="导引头类型"
            prop="dytInitialDeployInfoVO.dytType"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.dytInitialDeployInfoVO.dytType"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="主动导引头" value="主动导引头" />
              <el-option label="被动导引头" value="被动导引头" />
              <el-option label="主被动复合导引头" value="主被动复合导引头" />
              <el-option label="其他" value="其他" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="信号类型"
            prop="dytInitialDeployInfoVO.signalType"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.signalType"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item label="功率" prop="dytInitialDeployInfoVO.power">
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.power"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="工作策略"
            prop="dytInitialDeployInfoVO.workStrategy"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.workStrategy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="波束宽度"
            prop="dytInitialDeployInfoVO.waveWidth"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.waveWidth"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="发射速度"
            prop="dytInitialDeployInfoVO.launchSpeed"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.launchSpeed"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="抗干扰策略"
            prop="dytInitialDeployInfoVO.antiInterMeaStr"
            label-width="90px"
          >
            <el-select
              v-model="ruleForm.dytInitialDeployInfoVO.antiInterMeaStr"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="频率捷变" value="频率捷变" />
              <el-option label="旁键消隐" value="旁键消隐" />
              <el-option label="前沿跟踪" value="前沿跟踪" />
              <el-option label="被动跟踪" value="被动跟踪" />
            </el-select>
          </el-form-item>
          <el-form-item label="其 他" prop="dytInitialDeployInfoVO.elseInfo">
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.elseInfo"
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="主动作用距离(最大)"
            prop="dytInitialDeployInfoVO.maxActiveRange"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.maxActiveRange"
              placeholder="请输入最大距离"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="方位测角精度-被动"
            prop="dytInitialDeployInfoVO.passiveAziAccuracy"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.passiveAziAccuracy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="俯仰测角精度-主动"
            prop="dytInitialDeployInfoVO.activeElevAccuracy"
            label-width="120px"
          >
            <el-input
              v-model="ruleForm.dytInitialDeployInfoVO.activeElevAccuracy"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <TagIcon title="目标初始部署信息项" />
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item
            label="目标数量"
            prop="targetInitialDeployInfoVO.targetQuantity"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.targetQuantity"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="目标平均大小"
            prop="targetInitialDeployInfoVO.averageTargetSize"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.averageTargetSize"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="目标初始位置信息"
            prop="targetInitialDeployInfoVO.targetInitialPositionInfo"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="
                ruleForm.targetInitialDeployInfoVO.targetInitialPositionInfo
              "
              
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="目标舰种"
            prop="targetInitialDeployInfoVO.targetShipType"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.targetInitialDeployInfoVO.targetShipType"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="航母" value="航母" />
              <el-option label="驱逐舰" value="驱逐舰" />
              <el-option label="巡洋舰" value="巡洋舰" />
              <el-option label="护卫舰" value="护卫舰" />
              <el-option label="两栖攻击舰" value="两栖攻击舰" />
              <el-option label="补给舰" value="补给舰" />
              <el-option label="战斗机" value="战斗机" />
              <el-option label="直升机" value="直升机" />
              <el-option label="巡逻机" value="巡逻机" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="目标编队"
            prop="targetInitialDeployInfoVO.targetFormation"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.targetFormation"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="目标初始姿态信息"
            prop="targetInitialDeployInfoVO.targetInitialAttitudeInfo"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="
                ruleForm.targetInitialDeployInfoVO.targetInitialAttitudeInfo
              "
              
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="目标型号"
            prop="targetInitialDeployInfoVO.targetType"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.targetType"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="编队队形"
            prop="targetInitialDeployInfoVO.formationFormation"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.formationFormation"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="海域内其他舰船信息"
            prop="targetInitialDeployInfoVO.otherShipsInfo"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.targetInitialDeployInfoVO.otherShipsInfo"
              
              type="textarea"
              :rows="3"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <TagIcon title="作战背景环境初始信息项" />
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item
            label="交战地点"
            prop="battleEnviInitialInfoVO.battleLocation"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.battleLocation"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item label="气温" prop="battleEnviInitialInfoVO.temperature">
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.temperature"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="海水盐度"
            prop="battleEnviInitialInfoVO.seawaterSalinity"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.seawaterSalinity"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="风向"
            prop="battleEnviInitialInfoVO.windDirection"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.windDirection"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="交战环境"
            prop="battleEnviInitialInfoVO.battleBackgroundEnvi"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.battleEnviInitialInfoVO.battleBackgroundEnvi"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="海面" value="海面" />
              <el-option label="岛岸" value="岛岸" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="海况等级"
            prop="battleEnviInitialInfoVO.seaLevel"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.battleEnviInitialInfoVO.seaLevel"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="0" value="0" />
              <el-option label="1" value="1" />
              <el-option label="2" value="2" />
              <el-option label="3" value="3" />
              <el-option label="4" value="4" />
              <el-option label="5" value="5" />
              <el-option label="6" value="6" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="能见度"
            prop="battleEnviInitialInfoVO.visibility"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.visibility"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="云雨雾雪情况"
            prop="battleEnviInitialInfoVO.weatherConditions"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.weatherConditions"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item
            label="天气类型"
            prop="battleEnviInitialInfoVO.weatherType"
            :rules="{
              required: true,
              message: '请选择',
              trigger: 'change',
            }"
          >
            <el-select
              v-model="ruleForm.battleEnviInitialInfoVO.weatherType"
              clearable
              placeholder="请选择"
              :disabled="disabled"
            >
              <el-option label="晴天" value="晴天" />
              <el-option label="多云" value="多云" />
              <el-option label="雾" value="雾" />
              <el-option label="雨" value="雨" />
              <el-option label="降雪" value="降雪" />
            </el-select>
          </el-form-item>
          <el-form-item
            label="海水温度"
            prop="battleEnviInitialInfoVO.seaTemperature"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.seaTemperature"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
          <el-form-item
            label="风力"
            prop="battleEnviInitialInfoVO.windForce"
            :rules="{
              required: true,
              message: '请输入',
              trigger: 'blur',
            }"
          >
            <el-input
              v-model="ruleForm.battleEnviInitialInfoVO.windForce"
              placeholder="请输入"
              :disabled="disabled"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <div v-if="props.interferType === '舰载有源干扰-雷达'">
        <TagIcon title="干扰装备初始部署信息项(舰载有源干扰装备)" />
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item
              label="装备型号"
              prop="shipborneInitVO.equipmentModel"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.equipmentModel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射器部署位置信息"
              prop="shipborneInitVO.platformLocationInfo"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.platformLocationInfo"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="侦察侧向频段" prop="shipborneInitVO.scondBand">
              <el-input
                v-model="ruleForm.shipborneInitVO.scoutSidelobeRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="接收机灵敏度"
              prop="shipborneInitVO.sensitivityLevel"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.sensitivityLevel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="干扰技术产生"
              prop="shipborneInitVO.interEmissionMethod"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.interEmissionMethod"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="装备类型" prop="shipborneInitVO.equipmentType">
              <el-select
                v-model="ruleForm.shipborneInitVO.equipmentType"
                clearable
                placeholder="请选择"
                :disabled="disabled"
              >
                <el-option label="侦察" value="侦察" />
                <el-option label="告警" value="告警" />
                <el-option label="识别" value="识别" />
                <el-option label="综合电子战" value="综合电子战" />
              </el-select>
            </el-form-item>
            <el-form-item
              label="有效辐射功率"
              prop="shipborneInitVO.effectiveRadiatedPower"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.effectiveRadiatedPower"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="侦察空间范围"
              prop="shipborneInitVO.scoutSpaceRange"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.scoutSpaceRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="干扰频段"
              prop="shipborneInitVO.disruptionBand"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.disruptionBand"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="最大作用距离"
              prop="shipborneInitVO.maxEffectiveRange"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.maxEffectiveRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备部署平台"
              prop="shipborneInitVO.equipmentPlatform"
              label-width="100px"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.equipmentPlatform"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="工作体制" prop="shipborneInitVO.workingSystem">
              <el-input
                v-model="ruleForm.shipborneInitVO.workingSystem"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="测向精度"
              prop="shipborneInitVO.azimuthAccuracy"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.azimuthAccuracy"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="具备的干扰样式"
              prop="shipborneInitVO.interModes"
              label-width="96px"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.interModes"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="最大同时干扰目标数"
              prop="shipborneInitVO.maxInterTarget"
              label-width="100px"
            >
              <el-input
                v-model="ruleForm.shipborneInitVO.maxInterTarget"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
        </el-row>
      </div>

      <div v-if="props.interferType === '舷外有源干扰-雷达'">
        <TagIcon title="干扰装备初始部署信息项(舷外有源干扰装备)" />
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item
              label="装备型号"
              prop="outboardInitVO.equipmentModel"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.equipmentModel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射器部署位置信息"
              prop="outboardInitVO.platformLocationInfo"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.platformLocationInfo"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="侦察侧向频段"
              prop="outboardInitVO.scoutSidelobeRange"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.scoutSidelobeRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="接收机灵敏度"
              prop="outboardInitVO.sensitivityLevel"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.sensitivityLevel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="最大作用距离"
              prop="outboardInitVO.maxEffectiveRange"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.maxEffectiveRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="最大同时干扰目标数"
              prop="outboardInitVO.maxInterTarget"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.maxInterTarget"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="装备类型" prop="outboardInitVO.equipType">
              <el-select
                v-model="ruleForm.outboardInitVO.equipType"
                clearable
                placeholder="请选择"
                :disabled="disabled"
              >
                <el-option label="侦察" value="侦察" />
                <el-option label="告警" value="告警" />
                <el-option label="识别" value="识别" />
                <el-option label="综合电子战" value="综合电子战" />
              </el-select>
            </el-form-item>
            <el-form-item label="辐射功率" prop="outboardInitVO.radiantPower">
              <el-input
                v-model="ruleForm.outboardInitVO.radiantPower"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="侦察空间范围"
              prop="outboardInitVO.scoutSpaceRange"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.scoutSpaceRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="悬停时间" prop="outboardInitVO.hoverTime">
              <el-input
                v-model="ruleForm.outboardInitVO.hoverTime"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>

            <el-form-item
              label="干扰技术产生"
              prop="outboardInitVO.disturbTelProduct"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.disturbTelProduct"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备部署平台"
              prop="outboardInitVO.equipmentPlatform"
              label-width="100px"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.equipmentPlatform"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="工作体制" prop="outboardInitVO.workingSystem">
              <el-input
                v-model="ruleForm.outboardInitVO.workingSystem"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="测向精度" prop="outboardInitVO.sidePrecision">
              <el-input
                v-model="ruleForm.outboardInitVO.sidePrecision"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="干扰频段"
              prop="outboardInitVO.interFrequencyBand"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.interFrequencyBand"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="具备的干扰样式"
              prop="outboardInitVO.disturbStyle"
              label-width="96px"
            >
              <el-input
                v-model="ruleForm.outboardInitVO.disturbStyle"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
        </el-row>
      </div>

      <div v-if="props.interferType === '箔条干扰-雷达'">
        <TagIcon title="干扰装备初始部署信息项(箔条干扰装备)" />
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item
              label="装备型号"
              prop="chaffJammingInitVO.equipmentModel"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.equipmentModel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射器部署位置信息"
              prop="chaffJammingInitVO.platformLocationInfo"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.platformLocationInfo"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="箔条云外形"
              prop="chaffJammingInitVO.chaffCloudShape"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.chaffCloudShape"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="射程" prop="chaffJammingInitVO.firingRange">
              <el-input
                v-model="ruleForm.chaffJammingInitVO.firingRange"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射架数"
              prop="chaffJammingInitVO.launcherCount"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.launcherCount"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备类型"
              prop="chaffJammingInitVO.equipmentType"
            >
              <el-select
                v-model="ruleForm.chaffJammingInitVO.equipmentType"
                clearable
                placeholder="请选择"
                :disabled="disabled"
              >
                <el-option label="侦察" value="侦察" />
                <el-option label="告警" value="告警" />
                <el-option label="识别" value="识别" />
                <el-option label="综合电子战" value="综合电子战" />
              </el-select>
            </el-form-item>
            <el-form-item label="干扰波段" prop="chaffJammingInitVO.interBand">
              <el-input
                v-model="ruleForm.chaffJammingInitVO.interBand"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="箔条云尺寸"
              prop="chaffJammingInitVO.chaffCloudSize"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.chaffCloudSize"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射管口径"
              prop="chaffJammingInitVO.launchPipeSize"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.launchPipeSize"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="储弹箱数"
              prop="chaffJammingInitVO.roundCapacity"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.roundCapacity"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备部署平台"
              prop="chaffJammingInitVO.equipmentPlatform"
              label-width="100px"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.equipmentPlatform"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="留空时间"
              prop="chaffJammingInitVO.holdDuration"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.holdDuration"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射仰角"
              prop="chaffJammingInitVO.launchAngle"
            >
              <el-input
                v-model="ruleForm.chaffJammingInitVO.launchAngle"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item label="发射形式" prop="chaffJammingInitVO.launchType">
              <el-input
                v-model="ruleForm.chaffJammingInitVO.launchType"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
        </el-row>
      </div>

      <div v-if="props.interferType === '角反干扰-雷达'">
        <TagIcon title="干扰装备初始部署信息项(角反射器干扰装备)" />
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item
              label="装备型号"
              prop="cornerReflectorInitVO.equipmentModel"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.equipmentModel"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射器部署位置信息"
              prop="cornerReflectorInitVO.platformLocationInfo"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.platformLocationInfo"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="使用方式"
              prop="cornerReflectorInitVO.useMethod"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.useMethod"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="布设形式"
              prop="cornerReflectorInitVO.arrangeMethod"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.arrangeMethod"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="配备数量"
              prop="cornerReflectorInitVO.equipmentCount"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.equipmentCount"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备类型"
              prop="cornerReflectorInitVO.equipmentType"
            >
              <el-select
                v-model="ruleForm.cornerReflectorInitVO.equipmentType"
                clearable
                placeholder="请选择"
                :disabled="disabled"
              >
                <el-option label="侦察" value="侦察" />
                <el-option label="告警" value="告警" />
                <el-option label="识别" value="识别" />
                <el-option label="综合电子战" value="综合电子战" />
              </el-select>
            </el-form-item>
            <el-form-item
              label="雷达截面积RCS"
              prop="cornerReflectorInitVO.holdDuration"
              label-width="98px"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.holdDuration"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="发射距离"
              prop="cornerReflectorInitVO.launchDistance"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.launchDistance"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="布设时间"
              prop="cornerReflectorInitVO.arrangeTime"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.arrangeTime"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item
              label="装备部署平台"
              prop="cornerReflectorInitVO.equipmentPlatform"
              label-width="100px"
              :rules="{
                required: true,
                message: '请输入',
                trigger: 'blur',
              }"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.equipmentPlatform"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="干扰波段"
              prop="cornerReflectorInitVO.interBand"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.interBand"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="角反尺寸"
              prop="cornerReflectorInitVO.cornerReflectorSize"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.cornerReflectorSize"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
            <el-form-item
              label="滞留时间"
              prop="cornerReflectorInitVO.stayTime"
            >
              <el-input
                v-model="ruleForm.cornerReflectorInitVO.stayTime"
                placeholder="请输入"
                :disabled="disabled"
              />
            </el-form-item>
          </el-col>
        </el-row>
      </div>

      <div class="form-footer common-buttons" v-if="!disabled">
        <el-button type="primary" @click="onSubmit(formRef, 'form')">保存</el-button>
        <el-button type="primary" @click="onReset(formRef)">取消</el-button>
      </div>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { onMounted, reactive, ref, watch } from 'vue';
import TagIcon from '@/components/tag-icon/index.vue';
import { FormInstance, ElMessage } from 'element-plus';
import { httpSaveTestSceneInitDeployDescript } from '@/api/testSampleData';
import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const isLook = route.query.layerType === 'look' ? true : false;
const disabled = ref<boolean>(isLook);

// 接收父组件传递过来的props
const props = defineProps({
  interferType: { type: String, default: '舰载有源干扰-雷达' },
  dataSourceObject: {
    type: Object,
    default: () => {
      return {};
    },
  },
});

const formRef = ref<FormInstance>();
const validateState = ref<boolean>(false) 
const loading = ref<boolean>(false)
let ruleForm = ref<any>({
  // 对抗案例想定总体描述项
  sampleAdversItemVO: {
    adversMode: '',
    scenarioDes: '',
    interfEquipUsageMeth: '',
    interfMechanism: '',
  },
  // 导引头初始部署信息项
  dytInitialDeployInfoVO: {
    dytName: '',
    radarStyle: '',
    runningSpeed: '',
    dytType: '',
    powerUpDistance: '',
    signalType: '',
    workingRange: '',
    workingFreq: '',
    workingBandwidth: '',
    polarization: '',
    workStrategy: '',
    pulseWidth: '',
    beamWidth: '',
    waveWidth: '',
    ballisticType: '',
    launchKinEnergy: '',
    launchSpeed: '',
    peneInterEquip: '',
    bindingInformation: '',
    antiInterMeaStr: '',
    dytInitiaPosition: '',
    dytTargetPosition: '',
    elseInfo: '',
    agileMethod: '',
    angleMeasType: '',
    maxActiveRange: '',
    maxPassiveRange: '',
    maxImagingIdentRange: '',
    passiveAziAccuracy: '',
    activeElevAccuracy: '',
    activeAziAccuracy: '',
    passiveElevAccuracy: '',
    distanceAccuracy: '',
    signalNoiseRatio: '',
  },

  // 目标初始部署信息项
  targetInitialDeployInfoVO: {
    targetQuantity: '',
    averageTargetSize: '',
    formationFormation: '',
    targetShipType: '',
    targetType: '',
    targetFormation: '',
    targetInitialAttitudeInfo: '',
    targetInitialPositionInfo: '',
    otherShipsInfo: '',
  },

  // 作战背景环境初始信息项
  battleEnviInitialInfoVO: {
    battleLocation: '',
    battleBackgroundEnvi: '',
    temperature: '',
    windDirection: '',
    seaLevel: '',
    oceanTemperature: '',
    seawaterSalinity: '',
    visibility: '',
    weatherConditions: '',
    weatherType: '',
    seaTemperature: '',
    windForce: '',
  },

  // 干扰装备初始部署信息项(舰载有源干扰装备-雷达)
  shipborneInitVO: {
    equipmentModel: '',
    equipmentType: '',
    equipmentPlatform: '',
    platformLocationInfo: '',
    effectiveRadiatedPower: '', // 辐射功率
    scoutSidelobeRange: '',
    scoutSpaceRange: '',
    azimuthAccuracy: '',
    sensitivityLevel: '',
    disruptionBand: '',
    interModes: '',
    interEmissionMethod: '',
    maxEffectiveRange: '',
    maxInterTarget: '',
    workingSystem: '',
  },

  // 干扰装备初始部署信息项(舷外有源干扰装备-雷达)
  outboardInitVO: {
    hoverTime: '',
    equipmentModel: '',
    equipmentType: '',
    equipmentPlatform: '',
    platformLocationInfo: '',
    effectiveRadiatedPower: '', // 辐射功率
    scoutSidelobeRange: '',
    scoutSpaceRange: '',
    azimuthAccuracy: '',
    sensitivityLevel: '',
    disruptionBand: '',
    interModes: '',
    interEmissionMethod: '',
    maxEffectiveRange: '',
    maxInterTarget: '',
    workingSystem: '',
  },

  // 干扰装备初始部署信息项(箔条干扰装备-雷达)
  chaffJammingInitVO: {
    equipmentModel: '',
    platformLocationInfo: '',
    equipmentType: '',
    equipmentPlatform: '',
    interBand: '',
    holdDuration: '',
    chaffCloudShape: '',
    chaffCloudSize: '',
    firingRange: '',
    launchPipeSize: '',
    launchType: '',
    launcherCount: '',
    roundCapacity: '',
    launchAngle: '',
  },

  // 干扰装备初始部署信息项(角反射器干扰装备-雷达)
  cornerReflectorInitVO: {
    equipmentModel: '',
    platformLocationInfo: '',
    equipmentType: '',
    holdDuration: '',
    equipmentPlatform: '',
    interBand: '',
    useMethod: '',
    launchDistance: '',
    cornerReflectorSize: '',
    arrangeMethod: '',
    arrangeTime: '',
    stayTime: '',
    equipmentCount: '',
  },
});

watch(
  () => props.dataSourceObject,
  (newValue, oldValue) => {
    const {
      sampleAdversItemVO,
      dytInitialDeployInfoVO,
      targetInitialDeployInfoVO,
      battleEnviInitialInfoVO,
      shipborneInitVO,
      outboardInitVO,
      chaffJammingInitVO,
      cornerReflectorInitVO,
    } = newValue.staticPara;
    ruleForm.value = {
      sampleAdversItemVO,
      dytInitialDeployInfoVO,
      targetInitialDeployInfoVO,
      battleEnviInitialInfoVO,
      shipborneInitVO,
      outboardInitVO,
      chaffJammingInitVO,
      cornerReflectorInitVO,
    };
  }
);

// 保存
const onSubmit = async (formEl: FormInstance | undefined, submitType:string ) => {
  if (!formEl) return;
  await formEl.validate((valid, fields) => {
    if (valid) {
      validateState.value = false
      const params = {
        sampleAdversItemParam: ruleForm.value.sampleAdversItemVO,
        dytInitialDeployInfoParam: ruleForm.value.dytInitialDeployInfoVO,
        targetInitialDeployInfoParam: ruleForm.value.targetInitialDeployInfoVO,
        battleEnviInitialInfoParam: ruleForm.value.battleEnviInitialInfoVO,
        shipborneInitParam: ruleForm.value.shipborneInitVO,
        outboardInitParam: ruleForm.value.outboardInitVO,
        chaffJammingInitParam: ruleForm.value.chaffJammingInitVO,
        cornerReflectorInitParam: ruleForm.value.cornerReflectorInitVO,
        sampleId: route.query.sampleId,
        interType: route.query.interType,
      };
      loading.value = true
      httpSaveTestSceneInitDeployDescript(params).then((res: any) => {
        loading.value = false
        const { code, message } = res;
        if (code === 200) {
          // 当submitType为form，表单提交
          if(submitType === 'form') {
            ElMessage({
              message: message || '保存成功',
              type: 'success',
            });
          }
        }
      });
    } else {
      console.log('error submit!', fields);
      validateState.value = true
    }
  });
};

const onReset = (formEl: FormInstance | undefined) => {
  if (!formEl) return;
  formEl.resetFields();
};

defineExpose({ onSubmit, formRef, validateState })
</script>

<style lang="scss" scoped>
.testScene-initDeployRelateDescriptForm {
  height: calc(100vh - 290px);
  padding: 20px;
  overflow-y: scroll;
  .el-form--inline .el-form-item {
    width: 100%;
  }
  .el-select--small {
    width: 100%;
  }
  .el-row {
    margin-right: 0 !important;
  }

  .form-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
}
</style>
